f150c53d8e417732b238d7574d92a8527690d817,platform/xdebugger-impl/src/com/intellij/xdebugger/impl/ui/tree/actions/EvaluateInConsoleFromTreeAction.java,EvaluateInConsoleFromTreeAction,perform,#XValueNodeImpl#String#AnActionEvent#,34
Before Change
protected void perform(XValueNodeImpl node, @NotNull String nodeName, AnActionEvent e) {
ConsoleExecuteAction action = getConsoleExecuteAction(e);
if (action != null) {
String expression = node.getValueContainer().getEvaluationExpression();
if (expression != null) {
action.execute(null, expression, null);
}
After Change
protected void perform(XValueNodeImpl node, @NotNull String nodeName, AnActionEvent e) {
final ConsoleExecuteAction action = getConsoleExecuteAction(e);
if (action != null) {
node.getValueContainer().calculateEvaluationExpression().done(new Consumer<String>() {
@Override
public void consume(String expression) {
if (expression != null) {
action.execute(null, expression, null);
}
}
});
}
}
}